﻿namespace Admin.NET.Core.Service;

/// <summary>
/// 用户登录参数
/// </summary>
public class LoginInput
{
    /// <summary>
    /// 账号
    /// </summary>
    /// <example>admin</example>
    [Required(ErrorMessage = "账号不能为空"), MinLength(2, ErrorMessage = "账号不能少于2个字符")]
    public string Account { get; set; }

    /// <summary>
    /// 密码
    /// </summary>
    /// <example>123456</example>
    [Required(ErrorMessage = "密码不能为空"), MinLength(3, ErrorMessage = "密码不能少于3个字符")]
    public string Password { get; set; }

    /// <summary>
    /// 验证码Id
    /// </summary>
    public long CodeId { get; set; }

    /// <summary>
    /// 验证码
    /// </summary>
    public string Code { get; set; }
    /// <summary>
    /// 企业编号，默认为8
    /// </summary>
    /// <example>8</example>
    public string Ent { get; set; } = "8";
    /// <summary>
    /// 据点编号
    /// </summary>
    /// <example>SJGS</example>
    public string Site { get; set; } = "SJGS";
    /// <summary>
    /// 工作站
    /// </summary>
    public string Workstation { get; set; }
}
/// <summary>
/// 用户登录参数
/// </summary>
public class LoginInputByPhone
{
    /// <summary>
    /// 手机号
    /// </summary>
    /// <example>admin</example>
    public string Phone { get; set; }

    /// <summary>
    /// 验证码
    /// </summary>
    /// <example>123456</example>
    public string Code { get; set; }

    
    /// <summary>
    /// 企业编号，默认为8
    /// </summary>
    /// <example>8</example>
    public string Ent { get; set; } = "8";
    /// <summary>
    /// 据点编号
    /// </summary>
    /// <example>SJGS</example>
    public string Site { get; set; } = "SJGS";
    /// <summary>
    /// 工作站
    /// </summary>
    public string Workstation { get; set; }
}